import React from 'react';
import { useParams, useLocation } from 'react-router-dom';
const Category = () => {
    // 获取 restful 风格传参 
    const par = useParams();
    //隐式传参和查询字符串传参都是在 loc 获取参数
    const loc = useLocation();
    console.log('par', par);
    console.log('loc', loc);
    return (
        <div>
            <h1>分类</h1>
        </div>
    );
}

export default Category;
